<li id='bm_<%=bookmark.id%>'>

<a href="#" title="display only subtasks" onclick="goto_bm(<%=bookmark.task_id%>,'item');return false;"><%= bookmark.task.title %></a>

<%= link_to_remote(image_tag('delete.gif', :title=>"delete"), {
    :url => {:controller=>'bookmarks', :action=>'destroy',:id=>bookmark.id},
    :success=>"$('bm_#{bookmark.id}').fade();Element.hide('loading')",
    :loading=>"Element.show('loading')"})
%>

<a href="#" title="paste" onclick="paste(<%=bookmark.task_id%>,'item');return false;"><img src="/images/paste.png"></a>

</li>

